// JavaScript Document

	var zhanghao=document.denglu.zhanghao.value;
	//var tel=/^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15\d{9}$/;
	//var mail=/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]/;
	var rr=/^((\(\d{3}\))|(\d{3}\-))?13\d{9}|15\d{9}$|^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]|^(\w){6,20}$/
	var mima=document.denglu.mima.value;
	var patrn=/^(\w){6,20}$/;  
	
function zhang(){
	document.getElementById("account").value="";
	if(mima==""){
		document.getElementById("password").style.background="url(../Images/pass.jpg) no-repeat 3px 5px;";
		}
	}

function mi(){
	document.getElementById("password").style.background="#FFF";
	}
	
function login(){
 

	if(!rr.test(zhanghao)|| zhanghao=="邮箱/会员账/号手机号"){
		alert("很抱歉！您输入的账号错误！请重新输入！");
		document.denglu.zhanghao.focus();
		document.denglu.zhanghao.select();
		return false;
		}else{
			}
	if(!patrn.test(mima)){
		alert("很抱歉！您输入的账号或密码错误！请重新输入！");
		document.denglu.mima.focus();
		document.denglu.mima.select();
		return false;
		}else{
			}
	}
